#ifndef ADDFRIEND_H
#define ADDFRIEND_H

#include <QDialog>
#include <QTcpSocket>
#include "msg.h"

namespace Ui {
class AddFriend;
}

class AddFriend : public QDialog
{
    Q_OBJECT

public:
    explicit AddFriend(QWidget *parent = 0);
    void SetSocket( QTcpSocket * s,QString u);
    ~AddFriend();

private:
    Ui::AddFriend *ui;
    QTcpSocket * socket = NULL;
    QString username;

private slots:
    void SendSlot();


};

#endif // ADDFRIEND_H
